﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace App_Clinique.ClassLibrary.Entities
{
    [Serializable]
    public abstract partial class Document
    {
        public Document()
        {
            this.DocumentID = Guid.NewGuid();
            this.DateCreation = DateTime.Now;
        }

        [Column("DocumentID", Order = 0), Key]
        public virtual Guid DocumentID { get; set; }

        [Column("DateCreation"), Required]
        public virtual DateTime DateCreation { get; set; }

        /****************************************************************************************************
         * Foreign Keys - IDs
         ***************************************************************************************************/
        [Column("PatientID", Order = 1)]
        public virtual Guid PatientID { get; set; }

        /****************************************************************************************************
         * Foreign Keys - Reference Objects
         ***************************************************************************************************/
        public virtual Patient Patient { get; set; }

        /****************************************************************************************************
         * Collections
         ***************************************************************************************************/
    }
}
